{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {},
   "outputs": [],
   "source": [
    "#1、导入相关包\n",
    "import pandas as pd\n",
    "import matplotlib.pyplot as plt\n",
    "import seaborn as sns\n",
    "%matplotlib inline"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>store_id</th>\n",
       "      <th>city</th>\n",
       "      <th>channel</th>\n",
       "      <th>gender_group</th>\n",
       "      <th>age_group</th>\n",
       "      <th>wkd_ind</th>\n",
       "      <th>product</th>\n",
       "      <th>customer</th>\n",
       "      <th>revenue</th>\n",
       "      <th>order</th>\n",
       "      <th>quant</th>\n",
       "      <th>unit_cost</th>\n",
       "      <th>unit_price</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>658</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>4</td>\n",
       "      <td>796.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>59</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>146</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>运动</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>70</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>178.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>89</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>658</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>229</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>袜子</td>\n",
       "      <td>2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>28</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>97.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>649</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>520</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>158.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>649</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>157.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>69</td>\n",
       "      <td>52</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>21</td>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>毛衣</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>99</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>208</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>437</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>129.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>129</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>520</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>12</td>\n",
       "      <td>2050.0</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>59</td>\n",
       "      <td>171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>611</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>648</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>737</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>32</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>2</td>\n",
       "      <td>79.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>649</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>208</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>658</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>196.0</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>69</td>\n",
       "      <td>49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>420</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>759</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>802</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>19</td>\n",
       "      <td>南京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>4</td>\n",
       "      <td>176.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>49</td>\n",
       "      <td>44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>231</td>\n",
       "      <td>广州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>114.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>375</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>479</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>146</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>759</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>758</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22263</th>\n",
       "      <td>255</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22264</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22265</th>\n",
       "      <td>255</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>118.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>69</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22266</th>\n",
       "      <td>480</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22267</th>\n",
       "      <td>649</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>198.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22268</th>\n",
       "      <td>737</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22269</th>\n",
       "      <td>182</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>3</td>\n",
       "      <td>297.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22270</th>\n",
       "      <td>68</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>156.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22271</th>\n",
       "      <td>520</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22272</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22273</th>\n",
       "      <td>21</td>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>288.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>144</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22274</th>\n",
       "      <td>315</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22275</th>\n",
       "      <td>648</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22276</th>\n",
       "      <td>208</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22277</th>\n",
       "      <td>611</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22278</th>\n",
       "      <td>70</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>40.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22279</th>\n",
       "      <td>335</td>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>运动</td>\n",
       "      <td>3</td>\n",
       "      <td>447.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22280</th>\n",
       "      <td>21</td>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22281</th>\n",
       "      <td>280</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22282</th>\n",
       "      <td>98</td>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>56.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22283</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>29</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22284</th>\n",
       "      <td>256</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22285</th>\n",
       "      <td>429</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22286</th>\n",
       "      <td>46</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22287</th>\n",
       "      <td>519</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>347.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>116</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22288</th>\n",
       "      <td>146</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>80.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22289</th>\n",
       "      <td>430</td>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22290</th>\n",
       "      <td>449</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22291</th>\n",
       "      <td>758</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>26.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22292</th>\n",
       "      <td>616</td>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>22293 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       store_id city channel gender_group age_group  wkd_ind product  \\\n",
       "0           658   深圳      线下       Female     25-29  Weekday    当季新品   \n",
       "1           146   杭州      线下       Female     25-29  Weekday      运动   \n",
       "2            70   深圳      线下         Male      >=60  Weekday      T恤   \n",
       "3           658   深圳      线下       Female     25-29  Weekday      T恤   \n",
       "4           229   深圳      线下         Male     20-24  Weekend      袜子   \n",
       "5            28   武汉      线上       Female     35-39  Weekend      T恤   \n",
       "6           649   杭州      线下       Female     25-29  Weekend      短裤   \n",
       "7           520   杭州      线下         Male      >=60  Weekend      T恤   \n",
       "8           649   杭州      线下       Female     30-34  Weekend     牛仔裤   \n",
       "9            21   北京      线下       Female     45-49  Weekend      毛衣   \n",
       "10          208   重庆      线下         Male     20-24  Weekend      配件   \n",
       "11          437   重庆      线下       Female     20-24  Weekday      T恤   \n",
       "12          520   杭州      线下       Female     35-39  Weekend    当季新品   \n",
       "13          611   深圳      线下         Male     30-34  Weekend      T恤   \n",
       "14          648   西安      线下         Male     20-24  Weekend      T恤   \n",
       "15          737   深圳      线下         Male     30-34  Weekend      短裤   \n",
       "16           32   武汉      线上         Male     35-39  Weekend      短裤   \n",
       "17          649   杭州      线下         Male     30-34  Weekday      袜子   \n",
       "18          208   重庆      线下       Female     30-34  Weekend      T恤   \n",
       "19          658   深圳      线下       Female     35-39  Weekday     牛仔裤   \n",
       "20          420   广州      线上         Male      >=60  Weekday      T恤   \n",
       "21          759   重庆      线下         Male     25-29  Weekend      T恤   \n",
       "22          802   西安      线下       Female     35-39  Weekday      短裤   \n",
       "23           19   南京      线下       Female     35-39  Weekend      T恤   \n",
       "24          231   广州      线下       Female     35-39  Weekend      T恤   \n",
       "25          375   广州      线上       Female     45-49  Weekday    当季新品   \n",
       "26          479   深圳      线下       Female     30-34  Weekday      配件   \n",
       "27          146   杭州      线下       Female     25-29  Weekday      T恤   \n",
       "28          759   重庆      线下       Female     25-29  Weekday      袜子   \n",
       "29          758   杭州      线下       Female     20-24  Weekday      短裤   \n",
       "...         ...  ...     ...          ...       ...      ...     ...   \n",
       "22263       255   杭州      线下       Female     30-34  Weekday     牛仔裤   \n",
       "22264       738   深圳      线下       Female     40-44  Weekend      T恤   \n",
       "22265       255   杭州      线下       Female      >=60  Weekday     牛仔裤   \n",
       "22266       480   重庆      线下         Male     30-34  Weekend      T恤   \n",
       "22267       649   杭州      线下       Female     20-24  Weekday    当季新品   \n",
       "22268       737   深圳      线下       Female     25-29  Weekday     牛仔裤   \n",
       "22269       182   广州      线上       Female     25-29  Weekday    当季新品   \n",
       "22270        68   重庆      线上       Female     40-44  Weekday    当季新品   \n",
       "22271       520   杭州      线下       Female     20-24  Weekday      T恤   \n",
       "22272       738   深圳      线下         Male     35-39  Weekend      T恤   \n",
       "22273        21   北京      线下       Female     20-24  Weekday    当季新品   \n",
       "22274       315   武汉      线下         Male     35-39  Weekday      短裤   \n",
       "22275       648   西安      线下       Female     25-29  Weekday      T恤   \n",
       "22276       208   重庆      线下       Female     45-49  Weekend      T恤   \n",
       "22277       611   深圳      线下         Male     20-24  Weekday      T恤   \n",
       "22278        70   深圳      线下         Male      >=60  Weekend      短裤   \n",
       "22279       335   上海      线下       Female     35-39  Weekend      运动   \n",
       "22280        21   北京      线下       Female     35-39  Weekend      T恤   \n",
       "22281       280   深圳      线下       Female     30-34  Weekend      短裤   \n",
       "22282        98   成都      线下         Male     35-39  Weekend      T恤   \n",
       "22283       738   深圳      线下       Female     45-49  Weekday      配件   \n",
       "22284       256   武汉      线下       Female     45-49  Weekend      T恤   \n",
       "22285       429   西安      线下         Male     25-29  Weekday      T恤   \n",
       "22286        46   武汉      线下       Female     35-39  Weekday      袜子   \n",
       "22287       519   杭州      线下       Female     20-24  Weekday      T恤   \n",
       "22288       146   杭州      线下       Female     30-34  Weekday      短裤   \n",
       "22289       430   成都      线下       Female     25-29  Weekend      T恤   \n",
       "22290       449   武汉      线下       Female     35-39  Weekday      T恤   \n",
       "22291       758   杭州      线下       Female     20-24  Weekday      袜子   \n",
       "22292       616   成都      线下         Male     30-34  Weekday    当季新品   \n",
       "\n",
       "       customer  revenue  order  quant  unit_cost  unit_price  \n",
       "0             4    796.0      4      4         59         199  \n",
       "1             1    149.0      1      1         49         149  \n",
       "2             2    178.0      2      2         49          89  \n",
       "3             1     59.0      1      1         49          59  \n",
       "4             2     65.0      2      3          9          22  \n",
       "5             1     97.0      1      1         49          97  \n",
       "6             1     33.0      1      1         19          33  \n",
       "7             2    158.0      2      2         49          79  \n",
       "8             3    157.0      3      3         69          52  \n",
       "9             1    199.0      1      1         99         199  \n",
       "10            1    149.0      1      1         29         149  \n",
       "11            1    129.0      1      1         49         129  \n",
       "12           12   2050.0     12     12         59         171  \n",
       "13            1     79.0      1      1         49          79  \n",
       "14            1     59.0      1      1         49          59  \n",
       "15            1     33.0      1      1         19          33  \n",
       "16            2     79.0      2      2         19          40  \n",
       "17            1     19.0      1      1          9          19  \n",
       "18            1     99.0      1      1         49          99  \n",
       "19            3    196.0      3      4         69          49  \n",
       "20            1     39.0      1      1         49          39  \n",
       "21            1     59.0      1      1         49          59  \n",
       "22            1     39.0      1      1         19          39  \n",
       "23            4    176.0      4      4         49          44  \n",
       "24            3    114.0      3      3         49          38  \n",
       "25            1     79.0      1      1         59          79  \n",
       "26            1     59.0      1      1         29          59  \n",
       "27            1     79.0      1      1         49          79  \n",
       "28            1     79.0      1      1          9          79  \n",
       "29            1     33.0      1      1         19          33  \n",
       "...         ...      ...    ...    ...        ...         ...  \n",
       "22263         1     19.0      1      1         69          19  \n",
       "22264         1     79.0      1      1         49          79  \n",
       "22265         1    118.0      1      2         69          59  \n",
       "22266         1    199.0      1      1         49         199  \n",
       "22267         2    198.0      2      2         59          99  \n",
       "22268         1     19.0      1      1         69          19  \n",
       "22269         3    297.0      3      3         59          99  \n",
       "22270         2    156.0      2      2         59          78  \n",
       "22271         1     39.0      1      1         49          39  \n",
       "22272         1     79.0      1      1         49          79  \n",
       "22273         2    288.0      2      2         59         144  \n",
       "22274         1     39.0      1      1         19          39  \n",
       "22275         1     59.0      1      1         49          59  \n",
       "22276         1     79.0      1      1         49          79  \n",
       "22277         1     79.0      1      1         49          79  \n",
       "22278         1     40.0      1      1         19          40  \n",
       "22279         3    447.0      3      3         49         149  \n",
       "22280         1     59.0      1      1         49          59  \n",
       "22281         1     39.0      1      1         19          39  \n",
       "22282         1     56.0      1      1         49          56  \n",
       "22283         1    158.0      1      2         29          79  \n",
       "22284         1    198.0      1      2         49          99  \n",
       "22285         1     99.0      1      1         49          99  \n",
       "22286         1     39.0      1      1          9          39  \n",
       "22287         3    347.0      3      3         49         116  \n",
       "22288         1     80.0      1      2         19          40  \n",
       "22289         1     79.0      1      1         49          79  \n",
       "22290         1    158.0      1      2         49          79  \n",
       "22291         1     26.0      1      1          9          26  \n",
       "22292         1     79.0      1      1         59          79  \n",
       "\n",
       "[22293 rows x 13 columns]"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#2、读取商品购买信息\n",
    "data1 = pd.read_csv('C:/Users/123/Desktop/uniqlo.csv',encoding='utf-8')\n",
    "data1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 3,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "3208"
      ]
     },
     "execution_count": 3,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#3、数据清洗：检测重复值个数\n",
    "data1.duplicated().sum()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 4,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>store_id</th>\n",
       "      <th>city</th>\n",
       "      <th>channel</th>\n",
       "      <th>gender_group</th>\n",
       "      <th>age_group</th>\n",
       "      <th>wkd_ind</th>\n",
       "      <th>product</th>\n",
       "      <th>customer</th>\n",
       "      <th>revenue</th>\n",
       "      <th>order</th>\n",
       "      <th>quant</th>\n",
       "      <th>unit_cost</th>\n",
       "      <th>unit_price</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>217</th>\n",
       "      <td>245</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>518</th>\n",
       "      <td>335</td>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>574</th>\n",
       "      <td>315</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>669</th>\n",
       "      <td>802</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>810</th>\n",
       "      <td>325</td>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1069</th>\n",
       "      <td>315</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1113</th>\n",
       "      <td>758</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1152</th>\n",
       "      <td>759</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1256</th>\n",
       "      <td>375</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1283</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1297</th>\n",
       "      <td>575</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1377</th>\n",
       "      <td>420</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1396</th>\n",
       "      <td>437</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1433</th>\n",
       "      <td>20</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1513</th>\n",
       "      <td>399</td>\n",
       "      <td>广州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1585</th>\n",
       "      <td>375</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1612</th>\n",
       "      <td>658</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1703</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1716</th>\n",
       "      <td>50</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1719</th>\n",
       "      <td>437</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1729</th>\n",
       "      <td>449</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1795</th>\n",
       "      <td>315</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1908</th>\n",
       "      <td>280</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1913</th>\n",
       "      <td>245</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1993</th>\n",
       "      <td>669</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>40.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2038</th>\n",
       "      <td>280</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>&lt;20</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>158.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2044</th>\n",
       "      <td>648</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2163</th>\n",
       "      <td>21</td>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>138.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>69</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2171</th>\n",
       "      <td>360</td>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2228</th>\n",
       "      <td>496</td>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22181</th>\n",
       "      <td>182</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22184</th>\n",
       "      <td>831</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22186</th>\n",
       "      <td>52</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22187</th>\n",
       "      <td>182</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22196</th>\n",
       "      <td>248</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22199</th>\n",
       "      <td>375</td>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22201</th>\n",
       "      <td>519</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22210</th>\n",
       "      <td>91</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22218</th>\n",
       "      <td>68</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22220</th>\n",
       "      <td>336</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22223</th>\n",
       "      <td>135</td>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22225</th>\n",
       "      <td>802</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22231</th>\n",
       "      <td>669</td>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22233</th>\n",
       "      <td>255</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22241</th>\n",
       "      <td>519</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22242</th>\n",
       "      <td>70</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22244</th>\n",
       "      <td>52</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22247</th>\n",
       "      <td>280</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>49.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22257</th>\n",
       "      <td>575</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22258</th>\n",
       "      <td>442</td>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22260</th>\n",
       "      <td>479</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22261</th>\n",
       "      <td>649</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22264</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22271</th>\n",
       "      <td>520</td>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22272</th>\n",
       "      <td>738</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22277</th>\n",
       "      <td>611</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22278</th>\n",
       "      <td>70</td>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>40.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22280</th>\n",
       "      <td>21</td>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22289</th>\n",
       "      <td>430</td>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22290</th>\n",
       "      <td>449</td>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>3208 rows × 13 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "       store_id city channel gender_group age_group  wkd_ind product  \\\n",
       "217         245   杭州      线下       Female     30-34  Weekday    当季新品   \n",
       "518         335   上海      线下       Female     30-34  Weekend      T恤   \n",
       "574         315   武汉      线下       Female     25-29  Weekend      T恤   \n",
       "669         802   西安      线下         Male      >=60  Weekday      T恤   \n",
       "810         325   上海      线下       Female     25-29  Weekday     牛仔裤   \n",
       "1069        315   武汉      线下       Female     25-29  Weekend      T恤   \n",
       "1113        758   杭州      线下       Female     30-34  Weekend      T恤   \n",
       "1152        759   重庆      线下         Male     25-29  Weekend      T恤   \n",
       "1256        375   广州      线上         Male     25-29  Weekend      短裤   \n",
       "1283        738   深圳      线下         Male     20-24  Weekday      T恤   \n",
       "1297        575   杭州      线下         Male     25-29  Weekend      T恤   \n",
       "1377        420   广州      线上       Female     40-44  Weekday      T恤   \n",
       "1396        437   重庆      线下       Female     40-44  Weekend      T恤   \n",
       "1433         20   深圳      线下       Female     20-24  Weekday      T恤   \n",
       "1513        399   广州      线下         Male     30-34  Weekend      T恤   \n",
       "1585        375   广州      线上         Male     35-39  Weekend      T恤   \n",
       "1612        658   深圳      线下       Female     35-39  Weekday      T恤   \n",
       "1703        738   深圳      线下       Female      >=60  Weekday      T恤   \n",
       "1716         50   武汉      线上         Male     25-29  Weekday      T恤   \n",
       "1719        437   重庆      线下         Male     25-29  Weekend      T恤   \n",
       "1729        449   武汉      线下         Male     35-39  Weekday      T恤   \n",
       "1795        315   武汉      线下       Female     40-44  Weekday      T恤   \n",
       "1908        280   深圳      线下         Male     20-24  Weekday      T恤   \n",
       "1913        245   杭州      线下         Male     25-29  Weekend      T恤   \n",
       "1993        669   重庆      线下         Male     20-24  Weekday      短裤   \n",
       "2038        280   深圳      线下       Female       <20  Weekend      T恤   \n",
       "2044        648   西安      线下       Female     25-29  Weekday      T恤   \n",
       "2163         21   北京      线下       Female     35-39  Weekend      T恤   \n",
       "2171        360   成都      线下       Female     25-29  Weekday      T恤   \n",
       "2228        496   上海      线下         Male      >=60  Weekday      T恤   \n",
       "...         ...  ...     ...          ...       ...      ...     ...   \n",
       "22181       182   广州      线上       Female     25-29  Weekday      T恤   \n",
       "22184       831   杭州      线下         Male     25-29  Weekday      T恤   \n",
       "22186        52   武汉      线上       Female     25-29  Weekend      T恤   \n",
       "22187       182   广州      线上       Female     20-24  Weekday      T恤   \n",
       "22196       248   杭州      线下         Male      >=60  Weekend      T恤   \n",
       "22199       375   广州      线上         Male     20-24  Weekend      T恤   \n",
       "22201       519   杭州      线下       Female     30-34  Weekday      T恤   \n",
       "22210        91   武汉      线上       Female      >=60  Weekend     牛仔裤   \n",
       "22218        68   重庆      线上       Female     25-29  Weekend      T恤   \n",
       "22220       336   西安      线下       Female     35-39  Weekday     牛仔裤   \n",
       "22223       135   上海      线下       Female     25-29  Weekend      T恤   \n",
       "22225       802   西安      线下         Male     20-24  Weekday      T恤   \n",
       "22231       669   重庆      线下       Female     35-39  Weekend      T恤   \n",
       "22233       255   杭州      线下         Male     25-29  Weekday      T恤   \n",
       "22241       519   杭州      线下       Female     30-34  Weekday      T恤   \n",
       "22242        70   深圳      线下       Female     20-24  Weekend      T恤   \n",
       "22244        52   武汉      线上       Female     40-44  Weekend      T恤   \n",
       "22247       280   深圳      线下       Female     35-39  Weekday    当季新品   \n",
       "22257       575   杭州      线下         Male     25-29  Weekend      T恤   \n",
       "22258       442   西安      线下         Male      >=60  Weekend      T恤   \n",
       "22260       479   深圳      线下         Male     25-29  Weekday      T恤   \n",
       "22261       649   杭州      线下         Male     30-34  Weekend      T恤   \n",
       "22264       738   深圳      线下       Female     40-44  Weekend      T恤   \n",
       "22271       520   杭州      线下       Female     20-24  Weekday      T恤   \n",
       "22272       738   深圳      线下         Male     35-39  Weekend      T恤   \n",
       "22277       611   深圳      线下         Male     20-24  Weekday      T恤   \n",
       "22278        70   深圳      线下         Male      >=60  Weekend      短裤   \n",
       "22280        21   北京      线下       Female     35-39  Weekend      T恤   \n",
       "22289       430   成都      线下       Female     25-29  Weekend      T恤   \n",
       "22290       449   武汉      线下       Female     35-39  Weekday      T恤   \n",
       "\n",
       "       customer  revenue  order  quant  unit_cost  unit_price  \n",
       "217           1     79.0      1      1         59          79  \n",
       "518           1     79.0      1      1         49          79  \n",
       "574           1     79.0      1      1         49          79  \n",
       "669           1     59.0      1      1         49          59  \n",
       "810           1     59.0      1      1         69          59  \n",
       "1069          1     79.0      1      1         49          79  \n",
       "1113          1     79.0      1      1         49          79  \n",
       "1152          1     99.0      1      1         49          99  \n",
       "1256          1     33.0      1      1         19          33  \n",
       "1283          1     79.0      1      1         49          79  \n",
       "1297          1     79.0      1      1         49          79  \n",
       "1377          1     79.0      1      1         49          79  \n",
       "1396          1     79.0      1      1         49          79  \n",
       "1433          1     99.0      1      1         49          99  \n",
       "1513          1     79.0      1      1         49          79  \n",
       "1585          1     59.0      1      1         49          59  \n",
       "1612          1     99.0      1      1         49          99  \n",
       "1703          1     79.0      1      1         49          79  \n",
       "1716          1     79.0      1      1         49          79  \n",
       "1719          1     79.0      1      1         49          79  \n",
       "1729          1     99.0      1      1         49          99  \n",
       "1795          1     59.0      1      1         49          59  \n",
       "1908          1     59.0      1      1         49          59  \n",
       "1913          1     79.0      1      1         49          79  \n",
       "1993          1     40.0      1      1         19          40  \n",
       "2038          2    158.0      2      2         49          79  \n",
       "2044          1     99.0      1      1         49          99  \n",
       "2163          2    138.0      2      2         49          69  \n",
       "2171          1     79.0      1      1         49          79  \n",
       "2228          1     99.0      1      1         49          99  \n",
       "...         ...      ...    ...    ...        ...         ...  \n",
       "22181         1     99.0      1      1         49          99  \n",
       "22184         1     59.0      1      1         49          59  \n",
       "22186         1     99.0      1      1         49          99  \n",
       "22187         1     79.0      1      1         49          79  \n",
       "22196         1     79.0      1      1         49          79  \n",
       "22199         1     79.0      1      1         49          79  \n",
       "22201         1     59.0      1      1         49          59  \n",
       "22210         1     39.0      1      1         69          39  \n",
       "22218         1     99.0      1      1         49          99  \n",
       "22220         1     39.0      1      1         69          39  \n",
       "22223         1     99.0      1      1         49          99  \n",
       "22225         1     79.0      1      1         49          79  \n",
       "22231         1     79.0      1      1         49          79  \n",
       "22233         1     99.0      1      1         49          99  \n",
       "22241         1     59.0      1      1         49          59  \n",
       "22242         1     99.0      1      1         49          99  \n",
       "22244         1     99.0      1      1         49          99  \n",
       "22247         1     49.0      1      1         59          49  \n",
       "22257         1     99.0      1      1         49          99  \n",
       "22258         1     79.0      1      1         49          79  \n",
       "22260         1     99.0      1      1         49          99  \n",
       "22261         1     99.0      1      1         49          99  \n",
       "22264         1     79.0      1      1         49          79  \n",
       "22271         1     39.0      1      1         49          39  \n",
       "22272         1     79.0      1      1         49          79  \n",
       "22277         1     79.0      1      1         49          79  \n",
       "22278         1     40.0      1      1         19          40  \n",
       "22280         1     59.0      1      1         49          59  \n",
       "22289         1     79.0      1      1         49          79  \n",
       "22290         1    158.0      1      2         49          79  \n",
       "\n",
       "[3208 rows x 13 columns]"
      ]
     },
     "execution_count": 4,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#4、数据清洗：打印重复值\n",
    "df=data1[data1.duplicated()]\n",
    "df"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 5,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "data1每个特征缺失的数目为：\n",
      " store_id        0\n",
      "city            0\n",
      "channel         0\n",
      "gender_group    0\n",
      "age_group       0\n",
      "wkd_ind         0\n",
      "product         0\n",
      "customer        0\n",
      "revenue         0\n",
      "order           0\n",
      "quant           0\n",
      "unit_cost       0\n",
      "unit_price      0\n",
      "dtype: int64\n",
      "data1每个特征非缺失的数目为：\n",
      " store_id        22293\n",
      "city            22293\n",
      "channel         22293\n",
      "gender_group    22293\n",
      "age_group       22293\n",
      "wkd_ind         22293\n",
      "product         22293\n",
      "customer        22293\n",
      "revenue         22293\n",
      "order           22293\n",
      "quant           22293\n",
      "unit_cost       22293\n",
      "unit_price      22293\n",
      "dtype: int64\n"
     ]
    }
   ],
   "source": [
    "#5、数据清洗：检测缺失值\n",
    "print('data1每个特征缺失的数目为：\\n',data1.isnull().sum())\n",
    "print('data1每个特征非缺失的数目为：\\n',data1.notnull().sum())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 6,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>city</th>\n",
       "      <th>channel</th>\n",
       "      <th>gender_group</th>\n",
       "      <th>age_group</th>\n",
       "      <th>wkd_ind</th>\n",
       "      <th>product</th>\n",
       "      <th>customer</th>\n",
       "      <th>revenue</th>\n",
       "      <th>order</th>\n",
       "      <th>quant</th>\n",
       "      <th>unit_cost</th>\n",
       "      <th>unit_price</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>4</td>\n",
       "      <td>796.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>59</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>运动</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>178.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>89</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>袜子</td>\n",
       "      <td>2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>97.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>158.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>157.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>69</td>\n",
       "      <td>52</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>毛衣</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>99</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>129.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>129</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>12</td>\n",
       "      <td>2050.0</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>59</td>\n",
       "      <td>171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>2</td>\n",
       "      <td>79.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>196.0</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>69</td>\n",
       "      <td>49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>南京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>4</td>\n",
       "      <td>176.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>49</td>\n",
       "      <td>44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>广州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>114.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22263</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22264</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22265</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>118.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>69</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22266</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22267</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>198.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22268</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22269</th>\n",
       "      <td>广州</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>3</td>\n",
       "      <td>297.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22270</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线上</td>\n",
       "      <td>Female</td>\n",
       "      <td>40-44</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>156.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22271</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22272</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22273</th>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>288.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>144</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22274</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22275</th>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22276</th>\n",
       "      <td>重庆</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22277</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22278</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>40.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22279</th>\n",
       "      <td>上海</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>运动</td>\n",
       "      <td>3</td>\n",
       "      <td>447.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22280</th>\n",
       "      <td>北京</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22281</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22282</th>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>56.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22283</th>\n",
       "      <td>深圳</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>29</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22284</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>45-49</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22285</th>\n",
       "      <td>西安</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22286</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22287</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>347.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>116</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22288</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>80.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22289</th>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>25-29</td>\n",
       "      <td>Weekend</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22290</th>\n",
       "      <td>武汉</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>35-39</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22291</th>\n",
       "      <td>杭州</td>\n",
       "      <td>线下</td>\n",
       "      <td>Female</td>\n",
       "      <td>20-24</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>26.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22292</th>\n",
       "      <td>成都</td>\n",
       "      <td>线下</td>\n",
       "      <td>Male</td>\n",
       "      <td>30-34</td>\n",
       "      <td>Weekday</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>22293 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      city channel gender_group age_group  wkd_ind product  customer  revenue  \\\n",
       "0       深圳      线下       Female     25-29  Weekday    当季新品         4    796.0   \n",
       "1       杭州      线下       Female     25-29  Weekday      运动         1    149.0   \n",
       "2       深圳      线下         Male      >=60  Weekday      T恤         2    178.0   \n",
       "3       深圳      线下       Female     25-29  Weekday      T恤         1     59.0   \n",
       "4       深圳      线下         Male     20-24  Weekend      袜子         2     65.0   \n",
       "5       武汉      线上       Female     35-39  Weekend      T恤         1     97.0   \n",
       "6       杭州      线下       Female     25-29  Weekend      短裤         1     33.0   \n",
       "7       杭州      线下         Male      >=60  Weekend      T恤         2    158.0   \n",
       "8       杭州      线下       Female     30-34  Weekend     牛仔裤         3    157.0   \n",
       "9       北京      线下       Female     45-49  Weekend      毛衣         1    199.0   \n",
       "10      重庆      线下         Male     20-24  Weekend      配件         1    149.0   \n",
       "11      重庆      线下       Female     20-24  Weekday      T恤         1    129.0   \n",
       "12      杭州      线下       Female     35-39  Weekend    当季新品        12   2050.0   \n",
       "13      深圳      线下         Male     30-34  Weekend      T恤         1     79.0   \n",
       "14      西安      线下         Male     20-24  Weekend      T恤         1     59.0   \n",
       "15      深圳      线下         Male     30-34  Weekend      短裤         1     33.0   \n",
       "16      武汉      线上         Male     35-39  Weekend      短裤         2     79.0   \n",
       "17      杭州      线下         Male     30-34  Weekday      袜子         1     19.0   \n",
       "18      重庆      线下       Female     30-34  Weekend      T恤         1     99.0   \n",
       "19      深圳      线下       Female     35-39  Weekday     牛仔裤         3    196.0   \n",
       "20      广州      线上         Male      >=60  Weekday      T恤         1     39.0   \n",
       "21      重庆      线下         Male     25-29  Weekend      T恤         1     59.0   \n",
       "22      西安      线下       Female     35-39  Weekday      短裤         1     39.0   \n",
       "23      南京      线下       Female     35-39  Weekend      T恤         4    176.0   \n",
       "24      广州      线下       Female     35-39  Weekend      T恤         3    114.0   \n",
       "25      广州      线上       Female     45-49  Weekday    当季新品         1     79.0   \n",
       "26      深圳      线下       Female     30-34  Weekday      配件         1     59.0   \n",
       "27      杭州      线下       Female     25-29  Weekday      T恤         1     79.0   \n",
       "28      重庆      线下       Female     25-29  Weekday      袜子         1     79.0   \n",
       "29      杭州      线下       Female     20-24  Weekday      短裤         1     33.0   \n",
       "...    ...     ...          ...       ...      ...     ...       ...      ...   \n",
       "22263   杭州      线下       Female     30-34  Weekday     牛仔裤         1     19.0   \n",
       "22264   深圳      线下       Female     40-44  Weekend      T恤         1     79.0   \n",
       "22265   杭州      线下       Female      >=60  Weekday     牛仔裤         1    118.0   \n",
       "22266   重庆      线下         Male     30-34  Weekend      T恤         1    199.0   \n",
       "22267   杭州      线下       Female     20-24  Weekday    当季新品         2    198.0   \n",
       "22268   深圳      线下       Female     25-29  Weekday     牛仔裤         1     19.0   \n",
       "22269   广州      线上       Female     25-29  Weekday    当季新品         3    297.0   \n",
       "22270   重庆      线上       Female     40-44  Weekday    当季新品         2    156.0   \n",
       "22271   杭州      线下       Female     20-24  Weekday      T恤         1     39.0   \n",
       "22272   深圳      线下         Male     35-39  Weekend      T恤         1     79.0   \n",
       "22273   北京      线下       Female     20-24  Weekday    当季新品         2    288.0   \n",
       "22274   武汉      线下         Male     35-39  Weekday      短裤         1     39.0   \n",
       "22275   西安      线下       Female     25-29  Weekday      T恤         1     59.0   \n",
       "22276   重庆      线下       Female     45-49  Weekend      T恤         1     79.0   \n",
       "22277   深圳      线下         Male     20-24  Weekday      T恤         1     79.0   \n",
       "22278   深圳      线下         Male      >=60  Weekend      短裤         1     40.0   \n",
       "22279   上海      线下       Female     35-39  Weekend      运动         3    447.0   \n",
       "22280   北京      线下       Female     35-39  Weekend      T恤         1     59.0   \n",
       "22281   深圳      线下       Female     30-34  Weekend      短裤         1     39.0   \n",
       "22282   成都      线下         Male     35-39  Weekend      T恤         1     56.0   \n",
       "22283   深圳      线下       Female     45-49  Weekday      配件         1    158.0   \n",
       "22284   武汉      线下       Female     45-49  Weekend      T恤         1    198.0   \n",
       "22285   西安      线下         Male     25-29  Weekday      T恤         1     99.0   \n",
       "22286   武汉      线下       Female     35-39  Weekday      袜子         1     39.0   \n",
       "22287   杭州      线下       Female     20-24  Weekday      T恤         3    347.0   \n",
       "22288   杭州      线下       Female     30-34  Weekday      短裤         1     80.0   \n",
       "22289   成都      线下       Female     25-29  Weekend      T恤         1     79.0   \n",
       "22290   武汉      线下       Female     35-39  Weekday      T恤         1    158.0   \n",
       "22291   杭州      线下       Female     20-24  Weekday      袜子         1     26.0   \n",
       "22292   成都      线下         Male     30-34  Weekday    当季新品         1     79.0   \n",
       "\n",
       "       order  quant  unit_cost  unit_price  \n",
       "0          4      4         59         199  \n",
       "1          1      1         49         149  \n",
       "2          2      2         49          89  \n",
       "3          1      1         49          59  \n",
       "4          2      3          9          22  \n",
       "5          1      1         49          97  \n",
       "6          1      1         19          33  \n",
       "7          2      2         49          79  \n",
       "8          3      3         69          52  \n",
       "9          1      1         99         199  \n",
       "10         1      1         29         149  \n",
       "11         1      1         49         129  \n",
       "12        12     12         59         171  \n",
       "13         1      1         49          79  \n",
       "14         1      1         49          59  \n",
       "15         1      1         19          33  \n",
       "16         2      2         19          40  \n",
       "17         1      1          9          19  \n",
       "18         1      1         49          99  \n",
       "19         3      4         69          49  \n",
       "20         1      1         49          39  \n",
       "21         1      1         49          59  \n",
       "22         1      1         19          39  \n",
       "23         4      4         49          44  \n",
       "24         3      3         49          38  \n",
       "25         1      1         59          79  \n",
       "26         1      1         29          59  \n",
       "27         1      1         49          79  \n",
       "28         1      1          9          79  \n",
       "29         1      1         19          33  \n",
       "...      ...    ...        ...         ...  \n",
       "22263      1      1         69          19  \n",
       "22264      1      1         49          79  \n",
       "22265      1      2         69          59  \n",
       "22266      1      1         49         199  \n",
       "22267      2      2         59          99  \n",
       "22268      1      1         69          19  \n",
       "22269      3      3         59          99  \n",
       "22270      2      2         59          78  \n",
       "22271      1      1         49          39  \n",
       "22272      1      1         49          79  \n",
       "22273      2      2         59         144  \n",
       "22274      1      1         19          39  \n",
       "22275      1      1         49          59  \n",
       "22276      1      1         49          79  \n",
       "22277      1      1         49          79  \n",
       "22278      1      1         19          40  \n",
       "22279      3      3         49         149  \n",
       "22280      1      1         49          59  \n",
       "22281      1      1         19          39  \n",
       "22282      1      1         49          56  \n",
       "22283      1      2         29          79  \n",
       "22284      1      2         49          99  \n",
       "22285      1      1         49          99  \n",
       "22286      1      1          9          39  \n",
       "22287      3      3         49         116  \n",
       "22288      1      2         19          40  \n",
       "22289      1      1         49          79  \n",
       "22290      1      2         49          79  \n",
       "22291      1      1          9          26  \n",
       "22292      1      1         59          79  \n",
       "\n",
       "[22293 rows x 12 columns]"
      ]
     },
     "execution_count": 6,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#6、数据清洗：删除无意义列（store_id为门店随机编号id，无实际意义）\n",
    "data1.drop(['store_id'], axis=1, inplace=True) \n",
    "data1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 7,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "Female    14208\n",
       "Male       7967\n",
       "Unkown      118\n",
       "Name: gender_group, dtype: int64"
      ]
     },
     "execution_count": 7,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#7、数据清洗：查找性别异常值\n",
    "data1['gender_group'].unique()\n",
    "data1['gender_group'].value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 8,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "data": {
      "text/plain": [
       "30-34     4426\n",
       "25-29     4224\n",
       "35-39     3691\n",
       "20-24     3345\n",
       "40-44     1955\n",
       ">=60      1574\n",
       "45-49     1095\n",
       "50-54      672\n",
       "<20        660\n",
       "55-59      514\n",
       "Unkown     137\n",
       "Name: age_group, dtype: int64"
      ]
     },
     "execution_count": 8,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#8、数据清洗：查找年龄异常值\n",
    "data1['age_group'].unique()\n",
    "data1['age_group'].value_counts()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 9,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>city</th>\n",
       "      <th>channel</th>\n",
       "      <th>gender_group</th>\n",
       "      <th>age_group</th>\n",
       "      <th>wkd_ind</th>\n",
       "      <th>product</th>\n",
       "      <th>customer</th>\n",
       "      <th>revenue</th>\n",
       "      <th>order</th>\n",
       "      <th>quant</th>\n",
       "      <th>unit_cost</th>\n",
       "      <th>unit_price</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>4</td>\n",
       "      <td>796.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>59</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>运动</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>178.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>89</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>20-24</td>\n",
       "      <td>1</td>\n",
       "      <td>袜子</td>\n",
       "      <td>2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>22</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>武汉</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>97.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>97</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>1</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>158.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>157.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>69</td>\n",
       "      <td>52</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>北京</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>45-49</td>\n",
       "      <td>1</td>\n",
       "      <td>毛衣</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>99</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>20-24</td>\n",
       "      <td>1</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>129.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>129</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>12</td>\n",
       "      <td>2050.0</td>\n",
       "      <td>12</td>\n",
       "      <td>12</td>\n",
       "      <td>59</td>\n",
       "      <td>171</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>西安</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>20-24</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>武汉</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>短裤</td>\n",
       "      <td>2</td>\n",
       "      <td>79.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30-34</td>\n",
       "      <td>0</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>0</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>3</td>\n",
       "      <td>196.0</td>\n",
       "      <td>3</td>\n",
       "      <td>4</td>\n",
       "      <td>69</td>\n",
       "      <td>49</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>广州</td>\n",
       "      <td>0</td>\n",
       "      <td>1</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>25-29</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>西安</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>0</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>南京</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>4</td>\n",
       "      <td>176.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>49</td>\n",
       "      <td>44</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>广州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>114.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>38</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>广州</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>45-49</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>0</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>29</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>33.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>33</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>...</th>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "      <td>...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22263</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>0</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22264</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>40-44</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22265</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>0</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>118.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>69</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22266</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>199.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>199</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22267</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>198.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22268</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>牛仔裤</td>\n",
       "      <td>1</td>\n",
       "      <td>19.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>69</td>\n",
       "      <td>19</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22269</th>\n",
       "      <td>广州</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>3</td>\n",
       "      <td>297.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>59</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22270</th>\n",
       "      <td>重庆</td>\n",
       "      <td>0</td>\n",
       "      <td>0</td>\n",
       "      <td>40-44</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>156.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>78</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22271</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22272</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22273</th>\n",
       "      <td>北京</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>2</td>\n",
       "      <td>288.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>59</td>\n",
       "      <td>144</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22274</th>\n",
       "      <td>武汉</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>35-39</td>\n",
       "      <td>0</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22275</th>\n",
       "      <td>西安</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22276</th>\n",
       "      <td>重庆</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>45-49</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22277</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22278</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>1</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>40.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22279</th>\n",
       "      <td>上海</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>运动</td>\n",
       "      <td>3</td>\n",
       "      <td>447.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22280</th>\n",
       "      <td>北京</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22281</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>1</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>19</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22282</th>\n",
       "      <td>成都</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>35-39</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>56.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>56</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22283</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>45-49</td>\n",
       "      <td>0</td>\n",
       "      <td>配件</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>29</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22284</th>\n",
       "      <td>武汉</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>45-49</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>198.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22285</th>\n",
       "      <td>西安</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>99.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>99</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22286</th>\n",
       "      <td>武汉</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>0</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>39.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>39</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22287</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>3</td>\n",
       "      <td>347.0</td>\n",
       "      <td>3</td>\n",
       "      <td>3</td>\n",
       "      <td>49</td>\n",
       "      <td>116</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22288</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>30-34</td>\n",
       "      <td>0</td>\n",
       "      <td>短裤</td>\n",
       "      <td>1</td>\n",
       "      <td>80.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>19</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22289</th>\n",
       "      <td>成都</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>1</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22290</th>\n",
       "      <td>武汉</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>35-39</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>158.0</td>\n",
       "      <td>1</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22291</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>20-24</td>\n",
       "      <td>0</td>\n",
       "      <td>袜子</td>\n",
       "      <td>1</td>\n",
       "      <td>26.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>9</td>\n",
       "      <td>26</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22292</th>\n",
       "      <td>成都</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>30-34</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>1</td>\n",
       "      <td>79.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>59</td>\n",
       "      <td>79</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>22293 rows × 12 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "      city channel gender_group age_group wkd_ind product  customer  revenue  \\\n",
       "0       深圳       1            0     25-29       0    当季新品         4    796.0   \n",
       "1       杭州       1            0     25-29       0      运动         1    149.0   \n",
       "2       深圳       1            1      >=60       0      T恤         2    178.0   \n",
       "3       深圳       1            0     25-29       0      T恤         1     59.0   \n",
       "4       深圳       1            1     20-24       1      袜子         2     65.0   \n",
       "5       武汉       0            0     35-39       1      T恤         1     97.0   \n",
       "6       杭州       1            0     25-29       1      短裤         1     33.0   \n",
       "7       杭州       1            1      >=60       1      T恤         2    158.0   \n",
       "8       杭州       1            0     30-34       1     牛仔裤         3    157.0   \n",
       "9       北京       1            0     45-49       1      毛衣         1    199.0   \n",
       "10      重庆       1            1     20-24       1      配件         1    149.0   \n",
       "11      重庆       1            0     20-24       0      T恤         1    129.0   \n",
       "12      杭州       1            0     35-39       1    当季新品        12   2050.0   \n",
       "13      深圳       1            1     30-34       1      T恤         1     79.0   \n",
       "14      西安       1            1     20-24       1      T恤         1     59.0   \n",
       "15      深圳       1            1     30-34       1      短裤         1     33.0   \n",
       "16      武汉       0            1     35-39       1      短裤         2     79.0   \n",
       "17      杭州       1            1     30-34       0      袜子         1     19.0   \n",
       "18      重庆       1            0     30-34       1      T恤         1     99.0   \n",
       "19      深圳       1            0     35-39       0     牛仔裤         3    196.0   \n",
       "20      广州       0            1      >=60       0      T恤         1     39.0   \n",
       "21      重庆       1            1     25-29       1      T恤         1     59.0   \n",
       "22      西安       1            0     35-39       0      短裤         1     39.0   \n",
       "23      南京       1            0     35-39       1      T恤         4    176.0   \n",
       "24      广州       1            0     35-39       1      T恤         3    114.0   \n",
       "25      广州       0            0     45-49       0    当季新品         1     79.0   \n",
       "26      深圳       1            0     30-34       0      配件         1     59.0   \n",
       "27      杭州       1            0     25-29       0      T恤         1     79.0   \n",
       "28      重庆       1            0     25-29       0      袜子         1     79.0   \n",
       "29      杭州       1            0     20-24       0      短裤         1     33.0   \n",
       "...    ...     ...          ...       ...     ...     ...       ...      ...   \n",
       "22263   杭州       1            0     30-34       0     牛仔裤         1     19.0   \n",
       "22264   深圳       1            0     40-44       1      T恤         1     79.0   \n",
       "22265   杭州       1            0      >=60       0     牛仔裤         1    118.0   \n",
       "22266   重庆       1            1     30-34       1      T恤         1    199.0   \n",
       "22267   杭州       1            0     20-24       0    当季新品         2    198.0   \n",
       "22268   深圳       1            0     25-29       0     牛仔裤         1     19.0   \n",
       "22269   广州       0            0     25-29       0    当季新品         3    297.0   \n",
       "22270   重庆       0            0     40-44       0    当季新品         2    156.0   \n",
       "22271   杭州       1            0     20-24       0      T恤         1     39.0   \n",
       "22272   深圳       1            1     35-39       1      T恤         1     79.0   \n",
       "22273   北京       1            0     20-24       0    当季新品         2    288.0   \n",
       "22274   武汉       1            1     35-39       0      短裤         1     39.0   \n",
       "22275   西安       1            0     25-29       0      T恤         1     59.0   \n",
       "22276   重庆       1            0     45-49       1      T恤         1     79.0   \n",
       "22277   深圳       1            1     20-24       0      T恤         1     79.0   \n",
       "22278   深圳       1            1      >=60       1      短裤         1     40.0   \n",
       "22279   上海       1            0     35-39       1      运动         3    447.0   \n",
       "22280   北京       1            0     35-39       1      T恤         1     59.0   \n",
       "22281   深圳       1            0     30-34       1      短裤         1     39.0   \n",
       "22282   成都       1            1     35-39       1      T恤         1     56.0   \n",
       "22283   深圳       1            0     45-49       0      配件         1    158.0   \n",
       "22284   武汉       1            0     45-49       1      T恤         1    198.0   \n",
       "22285   西安       1            1     25-29       0      T恤         1     99.0   \n",
       "22286   武汉       1            0     35-39       0      袜子         1     39.0   \n",
       "22287   杭州       1            0     20-24       0      T恤         3    347.0   \n",
       "22288   杭州       1            0     30-34       0      短裤         1     80.0   \n",
       "22289   成都       1            0     25-29       1      T恤         1     79.0   \n",
       "22290   武汉       1            0     35-39       0      T恤         1    158.0   \n",
       "22291   杭州       1            0     20-24       0      袜子         1     26.0   \n",
       "22292   成都       1            1     30-34       0    当季新品         1     79.0   \n",
       "\n",
       "       order  quant  unit_cost  unit_price  \n",
       "0          4      4         59         199  \n",
       "1          1      1         49         149  \n",
       "2          2      2         49          89  \n",
       "3          1      1         49          59  \n",
       "4          2      3          9          22  \n",
       "5          1      1         49          97  \n",
       "6          1      1         19          33  \n",
       "7          2      2         49          79  \n",
       "8          3      3         69          52  \n",
       "9          1      1         99         199  \n",
       "10         1      1         29         149  \n",
       "11         1      1         49         129  \n",
       "12        12     12         59         171  \n",
       "13         1      1         49          79  \n",
       "14         1      1         49          59  \n",
       "15         1      1         19          33  \n",
       "16         2      2         19          40  \n",
       "17         1      1          9          19  \n",
       "18         1      1         49          99  \n",
       "19         3      4         69          49  \n",
       "20         1      1         49          39  \n",
       "21         1      1         49          59  \n",
       "22         1      1         19          39  \n",
       "23         4      4         49          44  \n",
       "24         3      3         49          38  \n",
       "25         1      1         59          79  \n",
       "26         1      1         29          59  \n",
       "27         1      1         49          79  \n",
       "28         1      1          9          79  \n",
       "29         1      1         19          33  \n",
       "...      ...    ...        ...         ...  \n",
       "22263      1      1         69          19  \n",
       "22264      1      1         49          79  \n",
       "22265      1      2         69          59  \n",
       "22266      1      1         49         199  \n",
       "22267      2      2         59          99  \n",
       "22268      1      1         69          19  \n",
       "22269      3      3         59          99  \n",
       "22270      2      2         59          78  \n",
       "22271      1      1         49          39  \n",
       "22272      1      1         49          79  \n",
       "22273      2      2         59         144  \n",
       "22274      1      1         19          39  \n",
       "22275      1      1         49          59  \n",
       "22276      1      1         49          79  \n",
       "22277      1      1         49          79  \n",
       "22278      1      1         19          40  \n",
       "22279      3      3         49         149  \n",
       "22280      1      1         49          59  \n",
       "22281      1      1         19          39  \n",
       "22282      1      1         49          56  \n",
       "22283      1      2         29          79  \n",
       "22284      1      2         49          99  \n",
       "22285      1      1         49          99  \n",
       "22286      1      1          9          39  \n",
       "22287      3      3         49         116  \n",
       "22288      1      2         19          40  \n",
       "22289      1      1         49          79  \n",
       "22290      1      2         49          79  \n",
       "22291      1      1          9          26  \n",
       "22292      1      1         59          79  \n",
       "\n",
       "[22293 rows x 12 columns]"
      ]
     },
     "execution_count": 9,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#9、数据转换：\n",
    "data1.replace('Weekday','0', inplace=True)\n",
    "data1.replace('Weekend','1', inplace=True)\n",
    "data1.replace('线上','0', inplace=True)\n",
    "data1.replace('线下','1', inplace=True)\n",
    "data1.replace('Female','0', inplace=True)\n",
    "data1.replace('Male','1', inplace=True)\n",
    "data1.replace('Unknow','2', inplace=True)\n",
    "data1"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb2224240>"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYgAAAFBCAYAAABtpDhaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAEghJREFUeJzt3X2wXHV9x/H3p4kPVWmV5gIZIU1goh2pmsoVrRZHpVW0VqXjA6lVVGpw1KmdVuNDO2pt7XRQ69RRcaJGsLXxoRRFoSqDlWgLLYkiRpEKFjUhCRdjFZ/QhG//uCdlc/3h3YS796zu+zWzs+d893f2fG8ms585D/vbVBWSJM31C303IEkaTwaEJKnJgJAkNRkQkqQmA0KS1GRASJKaDAhJUpMBIUlqMiAkSU1L+27gjli2bFmtXLmy7zYk6WfK1q1bb6qqqfnG/UwHxMqVK9myZUvfbUjSz5QkXxtmnKeYJElNBoQkqcmAkCQ1GRCSpCYDQpLUZEBIkppGFhBJNia5Mcm2gdr7k1zZPa5PcmVXX5nkBwOvvX1UfUmShjPK70GcA7wFeM/+QlU9ff9ykjcC3x4Yf11VrRlhP5KkgzCygKiqzUlWtl5LEuBpwKNHtX9J0h3T1zWIk4DdVfWVgdqqJJ9LcmmSk25vwyTrkmxJsmVmZmb0nUrShOprqo21wKaB9Z3Aiqr6ZpITgA8lOb6qvjN3w6raAGwAmJ6erkXpdgKsX7+eXbt2cdRRR3HWWWf13Y6kMbDoAZFkKfD7wAn7a1V1C3BLt7w1yXXAfQAnWloku3btYseOHX23IWmM9HGK6beBL1fV9v2FJFNJlnTLxwKrga/20JskqTPK21w3AZcB902yPckZ3UunceDpJYBHAFcl+Tzwz8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5HP9Kh8BSTJKnJU0ySpCYDQpLUZEBIkpoMCElSkwEhSWr6P6lvR30PtM+MAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 数据分析：工作日跟周末的销售情况\n",
    "plt.figure(figsize=(6,5))\n",
    "sns.barplot(x='wkd_ind',y='revenue',data=data1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>count</th>\n",
       "      <th>mean</th>\n",
       "      <th>std</th>\n",
       "      <th>min</th>\n",
       "      <th>25%</th>\n",
       "      <th>50%</th>\n",
       "      <th>75%</th>\n",
       "      <th>max</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>wkd_ind</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>12465.0</td>\n",
       "      <td>167.986200</td>\n",
       "      <td>310.773434</td>\n",
       "      <td>-0.66</td>\n",
       "      <td>66.0</td>\n",
       "      <td>99.0</td>\n",
       "      <td>192.0</td>\n",
       "      <td>12538.0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>9828.0</td>\n",
       "      <td>148.807984</td>\n",
       "      <td>224.537169</td>\n",
       "      <td>0.00</td>\n",
       "      <td>59.0</td>\n",
       "      <td>99.0</td>\n",
       "      <td>158.0</td>\n",
       "      <td>7919.0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           count        mean         std   min   25%   50%    75%      max\n",
       "wkd_ind                                                                   \n",
       "0        12465.0  167.986200  310.773434 -0.66  66.0  99.0  192.0  12538.0\n",
       "1         9828.0  148.807984  224.537169  0.00  59.0  99.0  158.0   7919.0"
      ]
     },
     "execution_count": 11,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 数据分析：工作日与周末的销售额对比\n",
    "data1.groupby('wkd_ind').revenue.describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>count</th>\n",
       "      <th>mean</th>\n",
       "      <th>std</th>\n",
       "      <th>min</th>\n",
       "      <th>25%</th>\n",
       "      <th>50%</th>\n",
       "      <th>75%</th>\n",
       "      <th>max</th>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>product</th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>T恤</th>\n",
       "      <td>10610.0</td>\n",
       "      <td>145.027789</td>\n",
       "      <td>154.278714</td>\n",
       "      <td>0.00</td>\n",
       "      <td>79.0</td>\n",
       "      <td>99.0</td>\n",
       "      <td>158.0</td>\n",
       "      <td>6636.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>当季新品</th>\n",
       "      <td>2540.0</td>\n",
       "      <td>232.545228</td>\n",
       "      <td>597.253282</td>\n",
       "      <td>0.00</td>\n",
       "      <td>76.0</td>\n",
       "      <td>111.0</td>\n",
       "      <td>197.0</td>\n",
       "      <td>12538.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>毛衣</th>\n",
       "      <td>807.0</td>\n",
       "      <td>304.375217</td>\n",
       "      <td>290.733202</td>\n",
       "      <td>0.00</td>\n",
       "      <td>149.0</td>\n",
       "      <td>199.0</td>\n",
       "      <td>396.0</td>\n",
       "      <td>4975.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>牛仔裤</th>\n",
       "      <td>1412.0</td>\n",
       "      <td>174.311246</td>\n",
       "      <td>238.681718</td>\n",
       "      <td>0.00</td>\n",
       "      <td>59.0</td>\n",
       "      <td>79.0</td>\n",
       "      <td>199.0</td>\n",
       "      <td>2087.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>短裤</th>\n",
       "      <td>1694.0</td>\n",
       "      <td>63.450933</td>\n",
       "      <td>55.646467</td>\n",
       "      <td>0.00</td>\n",
       "      <td>37.0</td>\n",
       "      <td>40.0</td>\n",
       "      <td>77.0</td>\n",
       "      <td>676.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>袜子</th>\n",
       "      <td>2053.0</td>\n",
       "      <td>62.216931</td>\n",
       "      <td>51.183226</td>\n",
       "      <td>0.00</td>\n",
       "      <td>27.0</td>\n",
       "      <td>52.0</td>\n",
       "      <td>79.0</td>\n",
       "      <td>595.36</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>裙子</th>\n",
       "      <td>629.0</td>\n",
       "      <td>218.287409</td>\n",
       "      <td>172.449212</td>\n",
       "      <td>10.00</td>\n",
       "      <td>99.0</td>\n",
       "      <td>197.0</td>\n",
       "      <td>237.0</td>\n",
       "      <td>1442.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>运动</th>\n",
       "      <td>976.0</td>\n",
       "      <td>120.962787</td>\n",
       "      <td>142.740403</td>\n",
       "      <td>-0.66</td>\n",
       "      <td>39.0</td>\n",
       "      <td>78.0</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1257.00</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>配件</th>\n",
       "      <td>1572.0</td>\n",
       "      <td>282.878594</td>\n",
       "      <td>398.705054</td>\n",
       "      <td>0.00</td>\n",
       "      <td>99.0</td>\n",
       "      <td>149.0</td>\n",
       "      <td>298.0</td>\n",
       "      <td>4187.00</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           count        mean         std    min    25%    50%    75%       max\n",
       "product                                                                       \n",
       "T恤       10610.0  145.027789  154.278714   0.00   79.0   99.0  158.0   6636.00\n",
       "当季新品      2540.0  232.545228  597.253282   0.00   76.0  111.0  197.0  12538.00\n",
       "毛衣         807.0  304.375217  290.733202   0.00  149.0  199.0  396.0   4975.00\n",
       "牛仔裤       1412.0  174.311246  238.681718   0.00   59.0   79.0  199.0   2087.00\n",
       "短裤        1694.0   63.450933   55.646467   0.00   37.0   40.0   77.0    676.00\n",
       "袜子        2053.0   62.216931   51.183226   0.00   27.0   52.0   79.0    595.36\n",
       "裙子         629.0  218.287409  172.449212  10.00   99.0  197.0  237.0   1442.00\n",
       "运动         976.0  120.962787  142.740403  -0.66   39.0   78.0  149.0   1257.00\n",
       "配件        1572.0  282.878594  398.705054   0.00   99.0  149.0  298.0   4187.00"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#数据分析：不同产品的销量情况对比\n",
    "data1.groupby(['product']).revenue.describe()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb6201908>"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAE+CAYAAACA8heHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAHXhJREFUeJzt3Xu8XGV97/HPLzcISeQiG1KviIKKhhSNFApIVKCKoBYvqCDeEK0tnt7OthWq4KkejUcrVcHmiAJWrYCieEGRI8hFvARR0VOsVIOQsmtouMUT5ZLf+eN5tplsdmSyM5dsns/79cprZtbMmvXL7DXru57nWWtNZCaSpHbNGHYBkqThMggkqXEGgSQ1ziCQpMYZBJLUOINAkhpnEEhS4wwCSWqcQSBJjZs17AK6sfPOO+duu+027DIkaVq55pprbs3MkQd63bQIgt12240VK1YMuwxJmlYi4sZuXmfXkCQ1ziCQpMYZBJLUOINAkhpnEEhS4wwCSWqcQSBJjTMIJKlxBoEkNc4gkKTGTYtLTEia3kZHRxkbG2PhwoUsW7Zs2OVoAoNAUt+NjY2xatWqYZehTbBrSJIaZxBIUuMMAklqnEEgSY0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AAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 432x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#数据分析：不同产品的销售金额对比\n",
    "plt.figure(figsize=(6,5))\n",
    "from pylab import mpl  \n",
    "mpl.rcParams['font.sans-serif'] = ['SimHei'] \n",
    "sns.barplot(x='product',y='revenue',data=data1)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 15,
   "metadata": {
    "scrolled": true
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb6204d68>"
      ]
     },
     "execution_count": 15,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAYIAAAE+CAYAAACA8heHAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAHWpJREFUeJzt3Xm4XFWZ7/HvmwlCggwSiQOYRkFFIA1GhAYkKqBMaoMICqIiRlvF29re2C1eBbvh2vE6IAh2LpHJkUEURRS5gAzikIgC3kZFDUOao6EDgdCRIXn7j7UPVE5OksqhhiTr+3me81TVrl17v6dq1/7ttfZQkZlIkuo1qt8FSJL6yyCQpMoZBJJUOYNAkipnEEhS5QwCSaqcQSBJlTMIJKlyBoEkVW5Mvwtox1ZbbZVT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/MzMsplwG+gXJ5gk9Ruoh2aF63QzPq1cChEfEFnrxkwXeAbC5l8Bbgc83wm4EXRMT1lH0GUt+4s1hVa3YWX5uZ1/a5FKlvDAJJqpxdQ5JUOYNAkipnEEhS5QwCSaqcQSBJlTMIJKly/w0VIZPfy6W/3QAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 432x360 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#数据分析：不同产品的平均销售额对比\n",
    "plt.figure(figsize=(6,5))\n",
    "sns.barplot(x='product',y='revenue',data = data1,\n",
    "           order = data1.groupby(['product']).revenue.mean().sort_values(ascending = False).index)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 16,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb6281dd8>"
      ]
     },
     "execution_count": 16,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgEAAAF0CAYAAAC64eqOAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3X2YHWV9//H3N08kJAECRCIPMVCjgkBEIhIFTFBQbFUKqLRK5Fc1aq2tP4upKKJYKl6xaq0/lUYQxW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D700EOMHTuWSy65hMsuu4y1a9fywAMPADB//vxt1tte2+23384Pf/hDlixZwvr161m1ahVHHnlkuzdTajx7AmrU09PDqlWr6Olx/qK6y1Oe8hRuvvlmAN773vdyySWXMHHixG3WufTSSznjjDP4whe+sM2y/uttr+3JT34yb37zm1myZAkXXnihl/eWOsQQIOlRXvva1/LjH/+YuXPn8uMf/5izzjrrUeucdNJJXHTRRZx44okArFq16lHrDPT7r776ak444QQuvvhiDjrooJbVLmnwInNkX1p/9uzZuWzZso489/z581m1ahUHHHAAl19+eUdqkAbjF7/4BYceeminyxiUbqpV6pSIWF7dzXdA9gRIktRQhgBJkhrKECBJUkMZAiRJaiivEyBpu45+a2snsy5///yW/j5Ju86eAEnDxqtf/WrmzJnDhRde2OlSpEYwBEgaFq688ko2b97MDTfcwK9//WvuuOOOTpckjXiGAEnDwpIlS3jZy14GwMknn8z111/f4Yqkkc8QIGlY2LhxIwcccAAAe++99yM3JJJUH0OApGFh0qRJj9yEaMOGDWzZsqXDFUkjnyFA0rBw9NFHPzIE8NOf/pQZM2Z0tiCpATxFUNJ2tfuUvlNPPZXjjz+e3/72t1x99dXceOONbX1+qYnsCZA0LOyxxx4sWbKEY489lmuvvZY999yz0yVJI549AbvgrvccMeDyTWv3Bsawae2dA647/fxbWlyZ1J2mTJnyyBkCkupnT4AkSQ1lCJAkqaEMAZIkNZRzAiRt12PNeRkq575Iw489AZKGld/97nccf/zxnS5DagRDgKRhY926dbzqVa9i48aNnS5FagRDgKRhY/To0XzpS19ijz326HQpUiM4J0DSsOHOX2ovewIkSWooQ4AkSQ3V8uGAiHgD8PLq4V7ATdXzHAZclZkXVutd2so2Sa3lKX3SyNfynoDM/Hhmzs3MucBS4FfA6MycAxwSETMj4rRWtrV6GyR11pIlSzpdgtQItU0MjIgDgP2ABK6omq8BjgOOanHbHf2eewGwAGD69Okt3CpJkkaOOucEvBH4ODARWFW1raUEg1a3bSMzF2fm7MycPXXq1BZukjRyZWanS3hM3VCj1E1qCQERMQ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3pPSzqR8kdzMGXHO6bf73gRMKMDtY8ZYNnunX5tW7SNAezWgec9FnjOINa7Cji0z+NLqq+jgR92+vXrV+uo6t8ewKgdLB/d5prGtvs5d7HWsdX3ATy+3/Indep1HKDm3Xr/fijzEJ5E6RH4FmVC61XVZ9s/UsLKcVXbX/XZloWUA7l21fwEYEmfx88FTqq+/xClZ2XfTtfsFQMbIiKmZIeuUqfhLyJ2z8z/7XQdUitUvQJPAH6Sw3AnFxHRv65O1WwIkCSpoTw7QJKkhjIESJLUUIYASS0TEf/U7/HTqqvlSRqGnBMgqTbVqWVk5qc6W4mk7bEnQNKQRcT4iPhiRFwfEd+OcsMtYuvdCYmIiyinor4tIv6tarsgIs6svn937/eSOsMQIGlnLKDc8Ok4yoW1Du+/QmaeS7lw0vsy87lV8+WUG75AuXPlN/r/nKT28YqBknbGU9h6OeRPDfaHMvNXETG5ukHNrdneO/1J6seeAEk74zbKdeUB3k65l8b2PEB1eefYeovNL1LutXF5nQVKemyGAEk74xPA06s5AE+n3I1ye74HnBYR/8HW66J/hXKjq+vrLlLSwDw7QFLbRMRTgcuAf8nMHd7ZUFJ7GAIkSWoohwMkSWooQ4AkSQ1lCJAkqaEMAZIkNZQhQJKkhvr/GyGmvsofSqUAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 576x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 数据分析：不同城市的顾客，线上、线下方式的对比\n",
    "plt.figure(figsize=(8,6))\n",
    "sns.barplot(x='city',y= 'revenue',hue ='channel',data = data1,\n",
    "           estimator = sum,\n",
    "           order = data1.groupby('city').revenue.sum().sort_values(ascending=False).index)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 17,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb62f3b38>"
      ]
     },
     "execution_count": 17,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgYAAAFzCAYAAABFOMFPAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAFeNJREFUeJzt3X/QXXWdH/D3pyRskADyI0tWMA1UKiKEVSLCFGxwlBWns1qgatsVWa10OzvOOJ01M60Ogy6FTtpxtFbLpFCETtcf28Wtq4urjjxDWMEl4Ch0hGLdgHnkwUD4ISnIr2//eC5fQghwkzz33uTJ6zVz5577veec7+cwz3Df+Z5zvqdaawEASJK/M+kCAIDdh2AAAHSCAQDQCQYAQCcYAACdYAAAdIIBANAJBgBAJxgAAN2CSRcwCYcddlhbvnz5pMsAgLG55ZZb7m+tLXm59fbKYLB8+fKsX79+0mUAwNhU1d3DrOdUAgDQCQYAQCcYAADdXnmNAQDsqCeffDIbN27M448/PulSXtKiRYty5JFHZuHChTu1vWAAAEPYuHFjDjjggCxfvjxVNelytqu1lgceeCAbN27MUUcdtVP7cCoBAIbw+OOP59BDD91tQ0GSVFUOPfTQXRrVEAwAYEi7cyh41q7WKBgAAJ1gAABz4KKLLsrU1NRY+lq1atXI9i0YAACduxIAYCc8/vjjOf/887Nx48a88pWvzHHHHZfvfOc7ufDCC/PII4/kW9/6VhYvXpxzzz03W7ZsyWte85pceeWVueiii/Lkk09m3bp1fb3LLrvsBW0HHnhgzjvvvPzyl7/MCSeckM9//vNjOS4jBgCwE9auXZsTTzwxN9xwQ84555zcfvvt+elPf5rrr78+Z599dr73ve/l3nvvzUc+8pF897vfzYYNG3LfffclyQvW217b2rVrc/zxx+f666/Pvffemx//+MdjOS4jBuxWVq9enZmZmSxdujRr1qyZdDkAL+qOO+7IOeeckyQ5//zzs2HDhpx88slJkmXLluWJJ57IwoULc/nll+fKK6/M5s2b89hjjyVJzjvvvOett722O++8M9///vczNTWVhx56KNPT01mxYsXIj8uIAbuVmZmZTE9PZ2ZmZtKlALykY489NjfffHOS5JJLLsnll1+e/fff/3nrXHHFFTn33HPzpS996Xnfbbve9tpe+9rX5qMf/WimpqZy8cUXZ9myZSM4ihcSDABgJ3z4wx/OrbfemlWrVuXWW2/N+9///hes8/a3vz2XXnpp3vrWtyZJpqend2j/1157bd7ylrfksssuy6tf/eo5q/2lVGttLB3tTlauXNnWr18/6TLYjvPOOy/T09M54ogjcvXVV0+6HIDuJz/5SV73utdNuoyhbK/Wqrqltbby5bY1YgAAdIIBANAJBgBAJxgAAJ15DABgJ530sbm9SPqW/3DenO5vZxgxAIA9yIc+9KGceuqpufjii0eyf8EAAPYQ11xzTZ5++unceOON+dnPfpa77rprzvsQDABgDzE1NZX3vOc9SZIzzzwzN9xww5z34RoDXtI9nzphrP09tfmQJAvy1Oa7x973sgtvG2t/ADtqy5YtOeKII5IkhxxySG699dY578OIAQDsIRYvXtwfxPToo4/mmWeemfM+BAMA2EOcdNJJ/fTBj370oyxfvnzO+3AqAQB20rhvL3z3u9+d008/Pb/4xS9y7bXX5qabbprzPowYAMAe4sADD8zU1FROOeWUXHfddTnooIPmvA8jBgCwBzn44IP7nQmjYMQAAOgEAwCgEwwAgM41BgCwk+Z6IrbdYaK1OR8xqKqDquraqvp2VX2tqvatqiuq6saq+sRW6428DQDmm/vuuy+nn376yPY/ilMJ/zzJp1trZyaZSfK+JPu01k5NcnRVHVNVZ4+6bQTHxRgctuiZHL7fUzls0dzP5gWwp3vwwQfzgQ98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PMzuCAAxJMIC91zuS/HFr7dTW2v9IcmeSz7TWViX5RGaDQPLCB8/ck9lH3ybJbw/eX2zbR3eijmdtu+32HpbzRJIlW+3nWScP3t+Q5KdD1AAMCAaw9/phks9V1feq6suZfWjNWVV1fZI/SPLzF9lubZJzBqMDBw7a/uuQ275sHVV1/Iusd3mS1w/6OCaz1xt8PclHquqyJA9ste6bBvW9Msk3dqAW2Ot5VgLsparqw0n+aWavE3gyyX9srU3t6XUMLpicmsSxwHwgGABjM/hX/NYebq25OBB2I4IBANC5xgAA6AQDAKATDACATjAAALr/D7w8UUdPBHEUAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 576x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 数据分析：不同性别的顾客，线上、线下方式的对比\n",
    "plt.figure(figsize=(8,6))\n",
    "sns.barplot(x='gender_group',y= 'revenue',hue ='channel',data = data1,\n",
    "           estimator =sum,\n",
    "           order = data1.groupby('gender_group').revenue.sum().sort_values(ascending=False).index\n",
    "           )           \n",
    "#报错：SyntaxError: unexpected EOF while parsing，括号没打\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb5d17630>"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAgEAAAFzCAYAAACn5No2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J0eypp7vUeDNe5hP0igZAiS9QHU72s9S/QefwPFUI/19op7nlcDP1//RH0U1ilknAx2WheoDf+jNWV7Nzrv13UE1VvpQQ++Odlf9/V6qkCKpIYYASedRHQ74r1Tjkr8e+GBmLsnMz9bzPEg1nOlS4GKqm5d00mlZqG4uM1SnsdK/T3Vb2h3r2WFx/f04dt4oRlIDHDFQKlzpvFS1AAAAtUlEQVR9N7orqMaCn0I1Lvxngf9HdY/1y4B/p7ph1lyqW7L+Ug67rWy9rgXAjUOXzcz7I2J1HSB2zLfjnIDDqe4s+E6qMdyvoLr98P5UvQnzgddQjUs/CPxyZr7Y5PZLJTMESNpFRLyLqlfghfrro5m5uu1lR1jfJdQnC+7rOiSNzBAgaZ/U5wcM9VRmeuKeNIEYAiRJKpQnBkqSVChDgCRJhTIESJJUKEOAJEmFMgRIklSo/w9AqaZP5TBplAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<Figure size 576x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 数据分析：不同年龄段的顾客，线上、线下方式的对比\n",
    "plt.figure(figsize=(8,6))\n",
    "sns.barplot(x='age_group',y= 'revenue',hue ='channel',data = data1,\n",
    "           estimator =sum,\n",
    "           order = data1.groupby('age_group').revenue.sum().sort_values(ascending=False).index\n",
    "           )      "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 19,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>city</th>\n",
       "      <th>channel</th>\n",
       "      <th>gender_group</th>\n",
       "      <th>age_group</th>\n",
       "      <th>wkd_ind</th>\n",
       "      <th>product</th>\n",
       "      <th>customer</th>\n",
       "      <th>revenue</th>\n",
       "      <th>order</th>\n",
       "      <th>quant</th>\n",
       "      <th>unit_cost</th>\n",
       "      <th>unit_price</th>\n",
       "      <th>margin</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>当季新品</td>\n",
       "      <td>4</td>\n",
       "      <td>796.0</td>\n",
       "      <td>4</td>\n",
       "      <td>4</td>\n",
       "      <td>59</td>\n",
       "      <td>199</td>\n",
       "      <td>140</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>杭州</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>运动</td>\n",
       "      <td>1</td>\n",
       "      <td>149.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>149</td>\n",
       "      <td>100</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>&gt;=60</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>2</td>\n",
       "      <td>178.0</td>\n",
       "      <td>2</td>\n",
       "      <td>2</td>\n",
       "      <td>49</td>\n",
       "      <td>89</td>\n",
       "      <td>40</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>0</td>\n",
       "      <td>25-29</td>\n",
       "      <td>0</td>\n",
       "      <td>T恤</td>\n",
       "      <td>1</td>\n",
       "      <td>59.0</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>49</td>\n",
       "      <td>59</td>\n",
       "      <td>10</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>深圳</td>\n",
       "      <td>1</td>\n",
       "      <td>1</td>\n",
       "      <td>20-24</td>\n",
       "      <td>1</td>\n",
       "      <td>袜子</td>\n",
       "      <td>2</td>\n",
       "      <td>65.0</td>\n",
       "      <td>2</td>\n",
       "      <td>3</td>\n",
       "      <td>9</td>\n",
       "      <td>22</td>\n",
       "      <td>13</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  city channel gender_group age_group wkd_ind product  customer  revenue  \\\n",
       "0   深圳       1            0     25-29       0    当季新品         4    796.0   \n",
       "1   杭州       1            0     25-29       0      运动         1    149.0   \n",
       "2   深圳       1            1      >=60       0      T恤         2    178.0   \n",
       "3   深圳       1            0     25-29       0      T恤         1     59.0   \n",
       "4   深圳       1            1     20-24       1      袜子         2     65.0   \n",
       "\n",
       "   order  quant  unit_cost  unit_price  margin  \n",
       "0      4      4         59         199     140  \n",
       "1      1      1         49         149     100  \n",
       "2      2      2         49          89      40  \n",
       "3      1      1         49          59      10  \n",
       "4      2      3          9          22      13  "
      ]
     },
     "execution_count": 19,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "# 数据分析：新增'利润'字段，观察销售额和产品成本之间的关系\n",
    "data1['margin']= data1.unit_price - data1.unit_cost\n",
    "data1.head()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 20,
   "metadata": {},
   "outputs": [
    {
     "name": "stderr",
     "output_type": "stream",
     "text": [
      "E:\\anaconda3\\lib\\site-packages\\scipy\\stats\\stats.py:1713: FutureWarning: Using a non-tuple sequence for multidimensional indexing is deprecated; use `arr[tuple(seq)]` instead of `arr[seq]`. In the future this will be interpreted as an array index, `arr[np.array(seq)]`, which will result either in an error or a different result.\n",
      "  return np.add.reduce(sorted[indexer] * weights, axis=axis) / sumval\n"
     ]
    },
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb654ef28>"
      ]
     },
     "execution_count": 20,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAe0AAAF0CAYAAAAO3WFwAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3Xu8HVV99/HPL1dCggJyJKLENBoUFCI2IuGiKQIVBVQU4RFEpTStIj6tbWMrVqkP+mBUvCFoFBDv4g1BqKWoyEUQg7RW641qEFOPxgYCWKpcfv1jzSE7hxNyCHv2Pmufz/v1ymtfZs+sNTl79nfWmjUzkZlIkqSJb0q/KyBJksbH0JYkqRKGtiRJlTC0JUmqhKEtSVIlDG1JkiphaEuSVAlDW5KkShjakiRVYlq/KzDaDjvskPPnz+93NSRJ6pnrr7/+N5k5tLnPTbjQnj9/PqtWrep3NSRJ6pmIuGk8n7N7XJKkShjakiRVwtCWJKkShrYkSZUwtCVJqoShLUlSJQxtSZIqYWhLklQJQ1uSpEoY2pIkVcLQliSpEoa2JEmVmHA3DGnb8uXLGR4eZu7cuaxYsaLf1ZEkadwmXWgPDw+zZs2afldDkqQHze5xSZIqYWhLklSJSdc9Pig8Ni9Jk4+hXSmPzUvS5GP3uCRJlTC0JUmqhKEtSVIlDG1JkirhQDT1jSPgJenBMbTVN46Al6QHx+5xSZIqYWhLklSJKrrH//BvPtq1ZW3zm9uZCvz8N7d3bbnXv/24rixHkqQHYktbkqRKGNqSJFWi66EdEdtFxCURsSoiPti8d3ZEXBMRb+h2eZIkTRZttLRfCnwiMxcD20TEcmBqZi4BFkTEwhbKlC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iJmZeadm/9kXZq91+nAXZn5u6ZVMTUzf9/nqgH3tbQvycx9Ot57DKXV/emRwSkd07aiHOP+PPB/Kcfxz8rMI5v53peZL4iIucBpTff4/pRxCgua91Y3h0O+2Xl6iTRRRcTLgKHMfEfzeiUbTu9cRDmb4gpKT+YhlB3a12RmRsSOlB36B7p4yYQUG5+10/vyDW1pfCI2nP8vyW2iHwxtSZIqMfDXHpckaVAY2pIkVcLQlgSUa3RHuU73g5lnfnPOuaQeMLQlPRTzKXfcktQDDkSTBkCU+2E/nXKe9VrKdawvo1yN6xWZuUfzufdR7k50K+XSjHcA51NOx7mLDec9k5kfaVrRSyk30jmjmfeuZvlHAa9o5l1NuYNbzy7BKk1GtrSlwXFlltuY/opyMZFHUe4uNhLYhwJbZeb+lHPKX0e5otVNmflHlIvDbMphlHuh7wu8A/jD5nz1vwA+kplLDWypfZPhimjSZHF98/hdSrf1esptIUfsRrmjGsC1wAsoLe6RayivGmOZs5rHJ1JuykFmfrm5e5WkHnPDkwbHXs3jnpQ72v33qCs3fZ9ym1AALb+vAAAAp0lEQVSax+9T7n38pI75oNxidKh5fkjz+EPgaQARcQzlTkhQrsu+dfP+WNfKltRFhrY0OJ7WXE99W+DLoydm5sWU+0pfRbkO9Nsp3eS7NPPt0nz0a8BhEfF+Nlzn+iIgI+IK4KXAu5v3bwCeEBFXUo5xS2qRA9GkAdAMRLs8My/vc1UktcjQliSpEnaPS5JUCUNbkqRKGNqSJFXC0JYkqRKGtiRJlfhfmsJHawdsBXgAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 576x432 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#数据分析：将销售额和产品成本之间的关系可视化\n",
    "plt.figure(figsize=(8,6))\n",
    "sns.barplot(x='product',y= 'margin',data = data1,\n",
    "           order = data1.groupby('product').margin.mean().sort_values(ascending=False).index\n",
    "           )      "
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 21,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb65790b8>"
      ]
     },
     "execution_count": 21,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAfcAAAJOCAYAAACqWE4HAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAIABJREFUeJzt3XucXXV97//XZ5IBQoKAGW5lxKkN8XaEU40oVUKoSXCserxVpchvFAWKR9IePGiLgQZIOf7sT1onVuSqY9rSeheV0SQ/SUGrTRMQvFSTaTvgoGImXHMBJpnv+WOtCTPDXHaSPbPWrHk9H495ZL5rr732Z2f23u/1WWvttSKlhCRJqo6GoguQJEn1ZbhLklQxhrskSRVjuEuSVDGGuyRJFWO4S5JUMYa7JEkVY7hLklQxhrskSRUzs+gC9ldTU1NqaWkpugxJkibFpk2belNKR9Uy75QN95aWFjZu3Fh0GZIkTYqIuK/Wed0sL0lSxRjukiRVjOEuSVLFGO6SJFWM4S5JUsUY7pIkVYzhLklSxRjukiRVjOEuSVLFGO6SJFWM4S5JUsUY7pIkVYzhLklSxRjukiRVjOEuSVLFGO6SJFWM4S5JUsUY7pIkVYzhLklSxcwsugBpPGeeeSa7du1i9uzZdHZ2Fl2OJJWenbtKb9euXQDs2LGj4EokaWow3FVqZ5555pBxa2trQZVI0tRhuKvUBrr2AXbvkjQ+w12SpIox3CVJqhjDXZKkijHcVWoRMeZYkvRMhrtK7fTTTx8yXrRoUTGFSNIUYrir1JYtWzbmWJL0TIa7Sq2pqWlvt37GGWcwd+7cYguSpCnAcFfpvetd72L27Nmcc845RZciSVOC4a7S+/rXv87OnTu59dZbiy5FkqYEw12l1tvbS2dnJyklOjs72bZtW9ElSV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n9Bk7iMQPozDfLn0a2q2UG2feAu/MtNZO2eW9Ayr6nO7nf1T0Aw/9uo32bIuXfrS6ZGTzztU5EzMpvG9h9+F1Gfq018vTK8fr839lkjcBkOgv4+5TSr8lWTq/n6WB/PvD3EXEH2ZbRMtQ7oog4BXgdWcN0HnB7/lnbQFbjs4DzU0qXD7rP28l2+94fEbcD/5VS6p60mlMqWxOnfRURs1JKu8afc2rJ14Ybgb6U0pN5lzIjpfTUOHctVERE8o0lAdP3/RBDv6U0+Y8/Df/PJUmqtNKeb1ySJO0fw12SpIox3CXtk4h4d2SnMd6X+7Tk39mXNAkMd0mToQVYVHAN0rThAXXSNBLZ9dhfQfY99a1kpzJdR3YClfeklE7K51tFdsGLR8jOurWd7Ct+R5CdXGTgu+OklD6bd+WLyC6q9Mn8vn358t8BvCe/bzfZV/om7dS50nRk5y5NP3fm3/keuD77cWRXoxsI9tcDh6SUTiP7Tv6Hyc4ydl9K6Qyyk/CM5g1kl1h9FfD/AS/Lz7v9p8BnU0qLDHZp4nkSG2n62ZT/ey/Z5vJHya5INuBFZBfpAfgB8GayDn7gNJobR1jmrPzfF5Bd74CU0jfyC6JImmS+8aTp55T8398lu0rVzmEn2/gJ2eVnyf/9Cdn1t1886H6QXbr2qPz31vzfnwEvB4iIs8kurgHZefcPzaePdLpUSXVkuEvTz8vz8+UfAXxj+I0ppW+SXRb4u2SnCf0rss3z8/P7zc9n/Q7whoj4W54+dejXgZSfUvQc4G/y6XcDz4+IO8n2wUuaQB5QJ00j+QF161NK6wsuRdIEMtwlSaoYN8tLklQxhrskSRVjuEuSVDGGuyRJFWO4S5JUMYa7JEkV838BtkQLZnfkGeoAAAAASUVORK5CYII=\n",
      "text/plain": [
       "<Figure size 576x720 with 1 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "#数据分析：不同产品的利润分布\n",
    "import matplotlib.pyplot as plt\n",
    "plt.rcParams['axes.unicode_minus']=False # 纵轴无法显示负号问题\n",
    "\n",
    "\n",
    "plt.figure(figsize=(8,10))\n",
    "sns.boxplot(x='product',y='margin',data=data1,\n",
    "           order = data1.groupby('product').margin.mean().sort_values(ascending=False).index\n",
    "           )"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 22,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>margin</th>\n",
       "      <th>unit_price</th>\n",
       "      <th>unit_cost</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>margin</th>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.911749</td>\n",
       "      <td>0.102540</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>unit_price</th>\n",
       "      <td>0.911749</td>\n",
       "      <td>1.000000</td>\n",
       "      <td>0.502075</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>unit_cost</th>\n",
       "      <td>0.102540</td>\n",
       "      <td>0.502075</td>\n",
       "      <td>1.000000</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              margin  unit_price  unit_cost\n",
       "margin      1.000000    0.911749   0.102540\n",
       "unit_price  0.911749    1.000000   0.502075\n",
       "unit_cost   0.102540    0.502075   1.000000"
      ]
     },
     "execution_count": 22,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "#数据分析：计算单价销售额和单件产品成本之间的相关性\n",
    "q = ['margin','unit_price','unit_cost'] #列选择\n",
    "data1[q].corr()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 24,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "<matplotlib.axes._subplots.AxesSubplot at 0x1dcb681cf98>"
      ]
     },
     "execution_count": 24,
     "metadata": {},
     "output_type": "execute_result"
    },
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAcUAAAFnCAYAAADXFVJhAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAAADl0RVh0U29mdHdhcmUAbWF0cGxvdGxpYiB2ZXJzaW9uIDIuMi4zLCBodHRwOi8vbWF0cGxvdGxpYi5vcmcvIxREBQAAGbJJREFUeJzt3X+wbWV93/H3xwsYBFuwQQQymYSRaGwCQkTBIl5QVDSIUn8wWg069GYy1E7LJBGVjBjxF0md/piqvYoKxmBIUlGJP1ALQi2ioF6CGVOsgzYkaBXCTxXlfPvHfi5338M5d+/NOotz9trvF7Nmr73Ps9b6HjbD93yf51nPSlUhSZLgYesdgCRJG4VJUZKkxqQoSVJjUpQkqTEpSpLUmBQlSWpMipIkNSZFSZIak6IkSc1ufZ78pz/4tsvlDNR9N16z3iGoJ3s//XfXOwT15Gf33py+zt31//e7//zBvcU2CytFSZKaXitFSdKCWLpvvSNYEyZFSVJ3tbTeEawJk6Ikqbslk6IkSQDUQCpFJ9pIktRYKUqSurP7VJKkZiDdpyZFSVJ33pIhSVIzkErRiTaSJDVWipKk7pxoI0nSyFDuUzQpSpK6G0il6JiiJEmNlaIkqTu7TyVJarxPUZKkxkpRkqTGiTaSJA2LlaIkqTu7TyVJagbSfWpSlCR1VuXsU0mSRgbSfepEG0mSGitFSVJ3jilKktQMpPvUpChJ6m4gy7w5pihJUmOlKEnqzu5TSZIaJ9pIktRYKUqS1AykUnSijSRpw0tyfpKrk5y9ys9/OclfJbkqyX+Y9rjlTIqSpO6Wlrptu5DkFGBTVR0NHJzkkBWavQN4c1U9DfiFJJunPG4nJkVJUmdV93Xakmx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e217X6w+O69no98Ett/3bgP0847vHAlwGq6lLgU8DjgKNbNXMssP8axLdo+vie7/+ugA8CX2GUAK9pn30J+FXgq8ANSS4Dng3c0/G62kBMipO9CHgP8HHgniQHrdLuOuAvk3w+yYW7aKe1dy+wX9t/Tnud9g+PHzHqMidJdtHuye31cOBbbf+eqlqacP5vAke2878ceDOjMeePVNVm4N8BfzNlrIuu7+/5/u8KeD2jP4S/ARzVPjuqvT8M+GJVPQvYF3jaDNfQBufzFJdp/6O6/5Udf5Eud9qy90cC/4dRl+ujgH2Am6vqpvG22yfctP1zusYrYPQHy7uSPAP44YzHfha4uCWs1wFXrtLuyFbZ3QJcOsP5PwGcmORKRhXFK1qMz0vyBUa9D/9qxpgXVd/f83uBC9r3/EPg5Yy+nw+27+//Am9llPjekeQNwI+Ba2e4hjY4Z59KEyQ5B7iiqq5Y51Ak9cxKURozPmuxub2qTl6preaX37NWY6UoSVLjRBtJkhqToiRJjUlRkqTGpChJUvP/AZjAdys9mPQpAAAAAElFTkSuQmCC\n",
      "text/plain": [
       "<Figure size 576x432 with 2 Axes>"
      ]
     },
     "metadata": {
      "needs_background": "light"
     },
     "output_type": "display_data"
    }
   ],
   "source": [
    "# 数据分析：单价销售额和单件产品成本之间的相关性热力图\n",
    "plt.figure(figsize=(8,6))\n",
    "sns.heatmap(data1[q].corr())"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.0"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
